package com.woniuxy.meal.service;

import com.woniuxy.meal.entity.UserAddress;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.meal.form.AddNewAddrForm;
import com.woniuxy.meal.form.ModifyAddrForm;
import com.woniuxy.meal.service.dto.GetAddressByUserIdDto;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zz
 * @since 2023年06月12日
 */
public interface UserAddressService extends IService<UserAddress> {

    UserAddress addNewAddr(AddNewAddrForm form) throws Exception;

    void modifyAddr(ModifyAddrForm form) throws Exception;

    List<GetAddressByUserIdDto> getUserAddress() throws Exception;

    void delAddress(Long addressId);
}
